package com.yanqu.road.server.cmd.activity.zhounianturntable;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.zhounianturntable.ZhouNianTurntableModule;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.ClientProtocol;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_ZHOUNIAN_TURNTABLE_GET_DATA, desc = "金玉宝盘信息")
public class ZhouNianTurntableGetDataCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.sendPacket(ClientProtocol.U_ZHOUNIAN_TURNTABLE_DATA, player.getModule(ZhouNianTurntableModule.class).getTurntableInfo());
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
